﻿



using System; 
using System.Collections;
using System.Collections.Generic ;
using System.Runtime.Serialization;

namespace ufida.u9.ait.openapi
{
	/// <summary>
	/// 付款单AITDTO DTO :REST自定义的数据传输类型 
	/// 
	/// </summary>
	[DataContract(Namespace = "ufida.u9.ait.openapi")]
	[Serializable]
	public partial class PayBillHeadAITDTOData  
	{
		/// <summary>
		/// Default Constructor
		/// </summary>
		public PayBillHeadAITDTOData()
		{
			initData();
		}
		private void initData()
		{
		
		
		
		
		
					PayObjType= 0; 
				
		
		
		
		
		
		

			//调用默认值初始化服务进行配置方式初始化
			UFSoft.UBF.Service.DTOService.InitConfigDefault(this);
		}
		[System.Runtime.Serialization.OnDeserializing]
		internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
		{
			 initData();
		}
		#region Do SerializeKey -ForDTODataType
		//只为处理集合型EntityKey。原因集合型EntityKey由于使用臫的集合对象，无法实现数据共享.-UBF专用.
		public void DoSerializeKeyList(IDictionary dict)
		{
			if (dict == null ) dict = new Hashtable() ;
			if (dict[this] != null)
				return ;
			dict[this] = this;
	        	        			if (this.PayBillLines!=null)
			{
				foreach(ufida.u9.ait.openapi.PayBillLineAITDTOData objdata in this.PayBillLines)
				{
					objdata.DoSerializeKeyList(dict);
				}
			}
				        			if (this.Transactor != null) 
			{
				this.Transactor.DoSerializeKeyList(dict);
			}
	        			if (this.Supp != null) 
			{
				this.Supp.DoSerializeKeyList(dict);
			}
	        			if (this.PC != null) 
			{
				this.PC.DoSerializeKeyList(dict);
			}
	        	        	        			if (this.DocumentType != null) 
			{
				this.DocumentType.DoSerializeKeyList(dict);
			}
	        			if (this.Dept != null) 
			{
				this.Dept.DoSerializeKeyList(dict);
			}
	        	        			if (this.DescFlexField != null) 
			{
				this.DescFlexField.DoSerializeKeyList(dict);
			}
	        			if (this.Project != null) 
			{
				this.Project.DoSerializeKeyList(dict);
			}
	        
		}
		#endregion 
		/// <summary>
		/// Constructor Full Argument
		/// </summary>
		public PayBillHeadAITDTOData(  System.String docNo  , List<ufida.u9.ait.openapi.PayBillLineAITDTOData> payBillLines  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData transactor  , ufida.u9.ait.openapi.CopyOfSupplierMISCInfoData supp  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData pC  , System.Int32 payObjType  , System.String payDate  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData documentType  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData dept  , System.String memo  , ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData descFlexField  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData project  , System.String invoiceNum  )
		{
			initData();
			this.DocNo = docNo;
			this.PayBillLines = payBillLines;
			this.Transactor = transactor;
			this.Supp = supp;
			this.PC = pC;
			this.PayObjType = payObjType;
			this.PayDate = payDate;
			this.DocumentType = documentType;
			this.Dept = dept;
			this.Memo = memo;
			this.DescFlexField = descFlexField;
			this.Project = project;
			this.InvoiceNum = invoiceNum;
		}
		#region System Fields 
		//--系统字段,目前没有.EntityData上有相应的字段,用于保存相关的实体状态信息,DTO上没有状态信息.	
		#endregion
		
		#region DTO Properties 
	
		

		/// <summary>
		/// 单号
		/// 付款单AITDTO.Misc.单号
		/// </summary>
		private System.String m_docNo ;
		[DataMember(IsRequired=false)]
		public System.String DocNo
		{
			get	
			{	
				return m_docNo ;
			}
			set	
			{	
				m_docNo = value ;	
			}
		}
			
		

		/// <summary>
		/// 付款单行
		/// 付款单AITDTO.Misc.付款单行
		/// </summary>
		private List<ufida.u9.ait.openapi.PayBillLineAITDTOData> m_payBillLines ;
		[DataMember(IsRequired=false)]
		public List<ufida.u9.ait.openapi.PayBillLineAITDTOData> PayBillLines
		{
			get	
			{	
				if (m_payBillLines == null )
				{
					List<ufida.u9.ait.openapi.PayBillLineAITDTOData> n_m_list = new List<ufida.u9.ait.openapi.PayBillLineAITDTOData>() ;
					m_payBillLines = n_m_list ;
				}
				return m_payBillLines ;
			}
			set	
			{	
				m_payBillLines = value ;	
			}
		}
			
		

		/// <summary>
		/// 业务员
		/// 付款单AITDTO.Misc.业务员
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_transactor ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Transactor
		{
			get	
			{	
				return m_transactor ;
			}
			set	
			{	
				m_transactor = value ;	
			}
		}
			
		

		/// <summary>
		/// 供应商
		/// 付款单AITDTO.Misc.供应商
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfSupplierMISCInfoData m_supp ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfSupplierMISCInfoData Supp
		{
			get	
			{	
				return m_supp ;
			}
			set	
			{	
				m_supp = value ;	
			}
		}
			
		

		/// <summary>
		/// 币种
		/// 付款单AITDTO.Misc.币种
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_pC ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData PC
		{
			get	
			{	
				return m_pC ;
			}
			set	
			{	
				m_pC = value ;	
			}
		}
			
		

		/// <summary>
		/// 付款对象
		/// 付款单AITDTO.Misc.付款对象
		/// </summary>
		private System.Int32 m_payObjType ;
		[DataMember(IsRequired=false)]
		public System.Int32 PayObjType
		{
			get	
			{	
				return m_payObjType ;
			}
			set	
			{	
				m_payObjType = value ;	
			}
		}
			
		

		/// <summary>
		/// 付款日期
		/// 付款单AITDTO.Misc.付款日期
		/// </summary>
		private System.String m_payDate ;
		[DataMember(IsRequired=false)]
		public System.String PayDate
		{
			get	
			{	
				return m_payDate ;
			}
			set	
			{	
				m_payDate = value ;	
			}
		}
			
		

		/// <summary>
		/// 单据类型
		/// 付款单AITDTO.Misc.单据类型
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_documentType ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData DocumentType
		{
			get	
			{	
				return m_documentType ;
			}
			set	
			{	
				m_documentType = value ;	
			}
		}
			
		

		/// <summary>
		/// 部门
		/// 付款单AITDTO.Misc.部门
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_dept ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Dept
		{
			get	
			{	
				return m_dept ;
			}
			set	
			{	
				m_dept = value ;	
			}
		}
			
		

		/// <summary>
		/// 备注
		/// 付款单AITDTO.Misc.备注
		/// </summary>
		private System.String m_memo ;
		[DataMember(IsRequired=false)]
		public System.String Memo
		{
			get	
			{	
				return m_memo ;
			}
			set	
			{	
				m_memo = value ;	
			}
		}
			
		

		/// <summary>
		/// 描述性弹性域
		/// 付款单AITDTO.Misc.描述性弹性域
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData m_descFlexField ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData DescFlexField
		{
			get	
			{	
				return m_descFlexField ;
			}
			set	
			{	
				m_descFlexField = value ;	
			}
		}
			
		

		/// <summary>
		/// 项目
		/// 付款单AITDTO.Misc.项目
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_project ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Project
		{
			get	
			{	
				return m_project ;
			}
			set	
			{	
				m_project = value ;	
			}
		}
			
		

		/// <summary>
		/// 发票号
		/// 付款单AITDTO.Misc.发票号
		/// </summary>
		private System.String m_invoiceNum ;
		[DataMember(IsRequired=false)]
		public System.String InvoiceNum
		{
			get	
			{	
				return m_invoiceNum ;
			}
			set	
			{	
				m_invoiceNum = value ;	
			}
		}
			
		#endregion	

		#region Multi_Fields
																										
		#endregion 
	} 	
}
